import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity()
export class Post {
  @Column({ type: 'varchar' })
  @PrimaryColumn()
  postId: string;

  @Column({ type: 'varchar' })
  title: string;

  @Column({ type: 'longtext' })
  content: string;

  @Column({ type: 'tinyint' })
  postType: number;

  @Column({ type: 'tinyint' })
  coverSize: number;

  @Column({ type: 'varchar', default: 'null' })
  videoUrl: string;

  @Column()
  userId: string;

  @Column()
  updateTime: string;
}
